<script setup lang="ts">
import { ref } from 'vue'
import NavBar from '@/components/NavBar.vue'
//约见记录
import Appointment from '@/pages/my/components/Appointment.vue'
//我的红娘
import Matchmaker from '@/pages/my/components/Matchmaker.vue'
const navList = ['我的红娘', '约见记录']
const current = ref(0)
const obj = ref({
  name: '婚恋顾问@柚子',
  store: '成都店',
  code: 68,
  image: '@/static/My/avatar.png',
  phone: '13888888888',
  qrcode: '@/static/My/avatar.png',
})
</script>

<template>
  <NavBar
    :navList="navList"
    @change="
      (index) => {
        current = index
      }
    "
  />
  <view v-show="current === 0">
    <Matchmaker :obj="(obj as any)" />
  </view>
  <view v-show="current === 1">
    <Appointment />
  </view>
</template>
